package pl.ws;

import javax.jws.WebService;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@WebService(endpointInterface="pl.ws.HelloWorld")
public class HelloWorldImpl implements HelloWorld {

	protected final Log log = LogFactory.getLog(getClass());
	
	public String sayHi(String text) throws Exception {
		log.info("HelloWorldImpl.sayHi: " + text);
		if (text.startsWith("Z")) throw new Exception("nie wolno na z");
		return "Hello " + text;
	}

}
